import request from '@/utils/request'

export function fetchFieldTemplateList(data) {
  return request({
    url: '/cloud-system/getFieldTemplateList',
    method: 'post',
    data
  })
}

export function fetchFieldTemplateOne(data) {
  return request({
    url: '/cloud-system/getOneFieldTemplateDetail',
    method: 'post',
    data
  })
}

export function createFieldTemplate(data) {
  return request({
    url: '/cloud-system/createOneFieldTemplate',
    method: 'post',
    data
  })
}

export function updateFieldTemplate(data) {
  return request({
    url: '/cloud-system/updateOneFieldTemplate',
    method: 'post',
    data
  })
}

export function deleteFieldTemplate(data) {
  return request({
    url: '/cloud-system/deleteOneFieldTemplate',
    method: 'post',
    data
  })
}
export function batchDeleteFieldTemplate(data) {
  return request({
    url: '/cloud-system/batchDeleteFieldTemplate',
    method: 'post',
    data
  })
}

export function lockFieldTemplate(data) {
  return request({
    url: '/cloud-system/lockOneFieldTemplate',
    method: 'post',
    data
  })
}

export function unlockFieldTemplate(data) {
  return request({
    url: '/cloud-system/unlockOneFieldTemplate',
    method: 'post',
    data
  })
}

export function batchLockFieldTemplate(data) {
  return request({
    url: '/cloud-system/batchLockFieldTemplate',
    method: 'post',
    data
  })
}

export function batchUnLockFieldTemplate(data) {
  return request({
    url: '/cloud-system/batchUnLockFieldTemplate',
    method: 'post',
    data
  })
}
